﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace StarPizza.Model.BaseModel
{
    public partial class OrderedPizzaInfo
    {
        public static Expression<Func<OrderedPizzaInfo, bool>> IsOrderDateBetween(DateTime startDate, DateTime endDate)
        {
            return pizzaInfo =>
                startDate <= pizzaInfo.OrderInfo.OrderDate
                && pizzaInfo.OrderInfo.OrderDate <= endDate;
        }
    }
}
